package com.nemo.fenxiangs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.nemo.fenxiangs.mapper.UserMapper;
import com.nemo.fenxiangs.mapper.UserMapperCustom;
import com.nemo.fenxiangs.po.User;
import com.nemo.fenxiangs.service.UserService;

public class UserServiceImpl implements UserService {
	@Autowired
	private UserMapper userMapper; 
	@Autowired
	private UserMapperCustom userMapperCustom;  
	@Override
	public void insertItems(User user) throws Exception {
		userMapper.insert(user);
	}
	@Override
	public List<User> findUserList() throws Exception {
		// TODO Auto-generated method stub
		return userMapperCustom.findUserList();
	}
	@Override
	public void deleteByPrimaryKey(Integer id) throws Exception {
		// TODO Auto-generated method stub
		 userMapper.deleteByPrimaryKey(id);
	}

}
